continuity in closed interval